package com.tianruan.psychological.moduls.sys.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianruan.psychological.moduls.sys.user.entry.db.RoleDO;
import com.tianruan.psychological.moduls.sys.user.entry.dto.RoleDTO;
import com.tianruan.psychological.moduls.sys.user.entry.dto.RolePermissionDTO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Dong
 * @Email: dong980514280@gmail.com
 * @Create: 2020-09-20 10:07
 * @PS
 */
@Service
public interface IRoleService extends IService<RoleDO> {


    RolePermissionDTO getRoleById(String id);

    List<RolePermissionDTO> listRole();

    RoleDTO insertRole(RoleDTO roleDTO);

    RoleDTO updateRole(String id, RoleDTO roleDTO);

}
